//
//  JBWPOPRealNameAuthenticationViewController.m
//  JBWDSK
//
//  Created by 崔志伟 on 2018/8/3.
//  Copyright © 2018年 崔志伟. All rights reserved.
//

#import "JBWPOPRealNameAuthenticationViewController.h"

@interface JBWPOPRealNameAuthenticationViewController ()
@property (nonatomic,strong) UIView *editBgView  ;
@property (nonatomic,strong) UITextField  * nameTextField ;
@property (nonatomic,strong) UITextField  * identityCardTextField ;
@property (nonatomic,strong) UIButton *showPasswordBtn  ;
@property (nonatomic,strong) UITextField  * verificationCodeTextField ;
@property (nonatomic,strong) UIButton  * sureBtn ;
@end

@implementation JBWPOPRealNameAuthenticationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor clearColor];
    self.bgContentViewHight = 260.0f;
    self.backTitle = @"实名认证";
    self.navView.isHideRightBtn = NO;
    [self setUpInputPasswordView];
    [self setUpRegisterBtn];
}
- (void)setUpInputPasswordView {
    self.editBgView = [[UIView alloc]initWithFrame:CGRectMake(20, 75, MAIN_BG_VIEW_WIDTH-40, 44*2+1)];
    self.editBgView .backgroundColor = [UIColor whiteColor];
    self.editBgView .layer.cornerRadius = 5.f;
    self.editBgView .layer.masksToBounds = YES;
    [self.bgContentView addSubview:self.editBgView ];
    
    // 手机号码
    self.nameTextField = [[UITextField alloc]initWithFrame:CGRectMake(5, 0, CGRectGetWidth(self.editBgView .frame)-10, 44)];
    self.nameTextField.placeholder = @"真实姓名";
    self.nameTextField.secureTextEntry = YES;
    self.nameTextField.font =  [UIFont systemFontOfSize:13];
    [self.editBgView  addSubview:self.nameTextField];

    
    UIView *centerLine = [[UIView alloc]initWithFrame:CGRectMake(0, 44, CGRectGetWidth(self.editBgView .frame), 1)];
    centerLine.backgroundColor = JBW_HEX_COLOR(0xF2F2F6);
    [self.editBgView  addSubview:centerLine];
    //密码
    self.identityCardTextField = [[UITextField alloc]initWithFrame:CGRectMake(5, 46, CGRectGetWidth(self.editBgView .frame)-10, 44)];
    self.identityCardTextField.font =  [UIFont systemFontOfSize:13];
    self.identityCardTextField.placeholder = @"身份证账号";
    [self.editBgView  addSubview:self.identityCardTextField];

    
    
}

-(void)setUpRegisterBtn{
    
    self.sureBtn = [[UIButton alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(self.editBgView.frame)+15, MAIN_BG_VIEW_WIDTH-40, 44)];
    self.sureBtn.backgroundColor = [UIColor orangeColor];
    [self.sureBtn setTitle:@"确定" forState:UIControlStateNormal];
    self.sureBtn .layer.cornerRadius = 5.f;
    self.sureBtn .layer.masksToBounds = YES;
    [self.sureBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self.sureBtn addTarget:self action:@selector(registerBtnAction) forControlEvents:UIControlEventTouchUpInside];
    [self.bgContentView addSubview:self.sureBtn];
    
}

- (void)registerBtnAction{
 
}

@end
